package com.vincce.fitness.core.base;
import com.vincce.fitness.entity.Admin;
import org.apache.shiro.SecurityUtils;

/**
 * Created with IntelliJ IDEA.
 * User: long
 * Date: 13-4-22
 * Time: 下午5:28
 */
public class BaseControllerSupport {

	public static String SUCCESS = "success";

	public static String FAIL = "fail";

	/**
	 * 获取当前登录用户
	 * @return
	 */
	public Admin getCurrentUser () {
		return (Admin) SecurityUtils.getSubject().getPrincipal();
		/*Admin admin = new Admin();
		admin.setId(1);
		admin.setLoginName("admin");
		admin.setPassword("1234");
		return admin;*/
	}

}
